package model

import (
	"time"

	"github.com/astaxie/beego/orm"
)

type Link struct {
	Id        int64
	Url       string     `orm:"size(16)"`
	Shortlink string     `orm:"size(16)"`
	Longlink  string     `orm:"size(2048)"`
	CreatedAt *time.Time `orm:"auto_now_add"`
	UpdatedAt *time.Time `orm:"auto_now"`
	DeletedAt *time.Time `orm:"null"`
}

func init() {
	orm.RegisterModel(&Link{})
}
